package com.msteam.kernel.render.vo;


public class ResponseJson {
	/**
	 * 状态
	 */
	private Integer state;
	/**
	 * 消息
	 */
	private String message;



	public static ResponseJson SuccessResult() {
		ResponseJson ret = new ResponseJson();

		return ret;
	}

	public static ResponseJson ErrorResult(String message) {
		ResponseJson ret = new ResponseJson();
		ret.setState(1);
		ret.setMessage(message);
		return ret;
	}

	public ResponseJson() {

		this.state = 0;
		this.message = "成功";

	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}


}
